/* linkit.js
 * By François Leporcq
 * MIT Licensed.
 */
var Point = AbstractShape.extend({
    _className: "Point",
    init:function (x, y) {
        this._x = x != null ? x : 0;
        this._y = y != null ? y : 0;
    },
    setX:function (x) {
        this._x = x;
    },
    getX:function () {
        return this._x;
    },
    setY:function (y) {
        this._y = y;
    },
    getY:function () {
        return this._y;
    },
    getCenter: function(){
        return this;
    },
    getOrigin: function(){
        return this;
    },
    setOrigin: function(origin){
        this.setX(origin.getX());
        this.setY(origin.getY());
    },
    getAnchor: function(){
        return new Anchor(this.getX(),this.getY());
    },
    getBox: function(){
        return null;
    }

}).implement([Linkable]);